package day03;

public class ifDemo {
    public static void main(String[] args) {
        double price = 300.0;
        if (price >= 500) {
            price *= 0.8;
        }
        System.out.println("最终消费为"+price);
    }


}
